﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="StudentDetails.aspx.cs" Inherits="AddToGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <title>Alpha Management - Groups</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <div style="margin:20px 50px;">
        <asp:Label ID="ErrorLabel" runat="server" Text="" Visible="false"></asp:Label>
        <asp:DataList ID="UserList" runat="server" DataKeyField="user_id" 
            DataSourceID="INB201DBSource">
            <ItemTemplate>
                User ID:
                <asp:Label ID="user_idLabel" runat="server" Text='<%# Eval("user_id") %>' />
                <br />
                Username:
                <asp:Label ID="user_nameLabel" runat="server" Text='<%# Eval("user_name") %>' />
                <br />
                Group ID:
                <asp:Label ID="group_idLabel" runat="server" Text='<%# Eval("group_id") %>' />
                <br />
                Group name:
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("group_name") %>' />
                <br />
                <br />
            </ItemTemplate>
        </asp:DataList>
        <asp:SqlDataSource ID="INB201DBSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:INB201ConnectionString %>" 
            SelectCommand="SELECT [user_id], [user_name], [group_id], [group_name] FROM [users] WHERE ([user_id] = @user_id)">
            <SelectParameters>
                <asp:ControlParameter ControlID="UserNameHiddenField" Name="user_id" 
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:HiddenField ID="UserNameHiddenField" runat="server" />
        <asp:Button ID="WithdrawGroups" runat="server" 
            onclick="WithdrawGroupsButton_Click" Text="Withdraw from Group" />
        <br />
        <asp:Label ID="GroupNameLabel" runat="server" style="font-size: x-large" 
            Text=""></asp:Label>
        <br />
        <br />
                    <strong>
                    <asp:Label ID="StudentNameLabel1" runat="server" Text="Student Name"></asp:Label>
                    <asp:TextBox ID="StudentNumberTextBox1" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                    </strong>
                    <strong>
                    <br />
                    <asp:Label ID="StudentNumLabel1" runat="server" Text="Student Number"></asp:Label>
                    <asp:TextBox ID="StudentNameTextBox1" runat="server" Width="344px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentPhoneLabel1" runat="server" 
            Text="Student Ph Number"></asp:Label>
                    <asp:TextBox ID="StudentPhoneTextBox1" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentEmailLabel1" runat="server" 
            Text="Student Email"></asp:Label>
                    <asp:TextBox ID="StudentEmailTextBox1" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
        <br />
                    <asp:Label ID="StudentNameLabel2" runat="server" 
            Text="Student Name"></asp:Label>
                    <asp:TextBox ID="StudentNameTextBox2" runat="server" Width="344px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentNumLabel2" runat="server" 
            Text="Student Number"></asp:Label>
                    <asp:TextBox ID="StudentNumberTextBox2" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentPhoneLabel2" runat="server" 
            Text="Student Ph Number"></asp:Label>
                    <asp:TextBox ID="StudentPhoneTextBox2" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentEmailLabel2" runat="server" 
            Text="Student Email"></asp:Label>
                    <asp:TextBox ID="StudentEmailTextBox2" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
        <br />
                    <asp:Label ID="StudentNameLabel3" runat="server" 
            Text="Student Name"></asp:Label>
                    <asp:TextBox ID="StudentNameTextBox3" runat="server" Width="344px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentNumLabel3" runat="server" 
            Text="Student Number"></asp:Label>
                    <asp:TextBox ID="StudentNumberTextBox3" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentPhoneLabel3" runat="server" 
            Text="Student Ph Number"></asp:Label>
                    <asp:TextBox ID="StudentPhoneTextBox3" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentEmailLabel3" runat="server" 
            Text="Student Email"></asp:Label>
                    <asp:TextBox ID="StudentEmailTextBox3" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
        <br />
                    <asp:Label ID="StudentNameLabel4" runat="server" 
            Text="Student Name"></asp:Label>
                    <asp:TextBox ID="StudentNameTextBox4" runat="server" Width="344px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentNumLabel4" runat="server" 
            Text="Student Number"></asp:Label>
                    <asp:TextBox ID="StudentNumberTextBox4" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                <br />
        <br />
                    <asp:Label ID="StudentNameLabel5" runat="server" 
            Text="Student Name"></asp:Label>
                    <asp:TextBox ID="StudentNameTextBox5" runat="server" Width="344px"></asp:TextBox>
                <br />
                    <asp:Label ID="StudentNumLabel5" runat="server" 
            Text="Student Number"></asp:Label>
                    <asp:TextBox ID="StudentNumberTextBox5" runat="server" MaxLength="7" 
                        Width="330px"></asp:TextBox>
                    </strong>
</div>
</asp:Content>
